package com.niuwa.p2p.dao.business;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import com.niuwa.p2p.dao.MyBatisDao;
import com.niuwa.p2p.entity.business.ReceivePlan;
import com.niuwa.p2p.vo.front.account.CustomerInterestVo;
import com.niuwa.p2p.vo.front.account.RepaymentplanlistVo;
@MyBatisDao
public interface ReceivePlanDao {
	
	/**
	 * 逻辑删除
	 */
    int deleteByPrimaryKey(Long id);
    
    /**
	 * 逻辑删除
	 */
    int deleteByClaimNo(String claimNo);

    int insert(ReceivePlan record);

    int insertSelective(ReceivePlan record);

    ReceivePlan selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ReceivePlan record);

    int updateByPrimaryKey(ReceivePlan record);

    /**
     * 回款记录列表
     * @param param
     * @return
     */
	List<RepaymentplanlistVo> selectReceiveListByCustIdListPage(Map<String, Object> param);

	/**
	 * 用户收益
	 * @param param
	 * @return
	 */
	List<CustomerInterestVo> selectIncomeListByCustId(Map<String, Object> param);

	/**
	 * 用户已收收益
	 * @param param
	 * @return
	 */
	BigDecimal selectAllInterestByCustId(Map<String, Object> param);

	/**
	 * 回款详情
	 * @param id
	 * @return
	 */
	List<ReceivePlan> selectReceiveByProNo(Map<String, Object> mapParam);
}